Skip to content

Update hackrf_transfer for new libhackrf / radio API's (4/n)#1787

Draft
antoinevg wants to merge 9 commits into
mainfrom
antoinevg/radio-hackrf-transfer
Draft

Update hackrf_transfer for new libhackrf / radio API's (4/n)#1787
antoinevg wants to merge 9 commits into
mainfrom
antoinevg/radio-hackrf-transfer

Conversation

@antoinevg

@antoinevg antoinevg commented Jun 23, 2026

Copy link
Copy Markdown
Member

This PR depends on #1772


This PR adds support to hackrf_transfer for:

  1. Specifying fractional sample rates and frequencies:

    hackrf_transfer -c 127 -s 5000000.123 -f 510000000.567

  2. Specifying sample rates and frequencies:

    hackrf_transfer -c 127 -s 5.000000123e6 -f 5.1000567e6

  3. Negative and fractional values for crystal_correct_ppm:

    hackrf_transfer -c 127 -s 10e6 -f 100e6 -C -1.5

TODO

  • add support for strtod-style notation parsing to hackrf_str_to_fp64
  • add support for negative ppm values
  • add support for fractional ppm values

@antoinevg antoinevg force-pushed the antoinevg/radio-hackrf-transfer branch 4 times, most recently from 327ad5c to c069dc9 Compare June 26, 2026 15:01
@antoinevg antoinevg force-pushed the antoinevg/radio-hackrf-transfer branch 2 times, most recently from d922d47 to f436cb0 Compare June 30, 2026 12:49
@antoinevg antoinevg force-pushed the antoinevg/radio-hackrf-transfer branch from f436cb0 to ff7d055 Compare July 1, 2026 14:14
mildsunrise added a commit to mildsunrise/hackrf that referenced this pull request Jul 1, 2026
now that we have hardware-enforced sample rate limits, I think it'd be nice to align the checks done in hackrf_transfer with those. if worried about expanding these limits breaking older firmware, I can add an USB API check for >= 1.11.

related to greatscottgadgets#1787 but seems to have no conflicts, feel free to close if you want to add that patch there :)
@antoinevg antoinevg force-pushed the antoinevg/radio-hackrf-transfer branch 3 times, most recently from 11dac44 to 22c5314 Compare July 6, 2026 12:38
@antoinevg antoinevg force-pushed the antoinevg/radio-hackrf-transfer branch from 22c5314 to 12c2e10 Compare July 7, 2026 10:16
@antoinevg antoinevg force-pushed the antoinevg/radio-hackrf-transfer branch from 12c2e10 to e9e3beb Compare July 7, 2026 13:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant